import React, { Suspense } from "react"
import ReactDOM from "react-dom/client"
import App from "./App"
import { HashRouter } from "react-router-dom"

const root = ReactDOM.createRoot(document.getElementById("root"))
root.render(
    // <React.StrictMode>
    <Suspense fallback={<h2>loading...</h2>}>
        <HashRouter>
            <App />
        </HashRouter>
    </Suspense>

    // </React.StrictMode>
)

// 路由核心：映射
// path1 => Component1
// path2 => Component2
